import instance from '@/utils/request.js'

function getUserlistData(params){
  return instance({
    url: '/user/list',
    params
  })
}

function updateStatus(data){
  return instance({
    url: '/user/status',
    method: 'post',
    data
  })
}

function delUserList(data){
  return instance({
    url: '/user/remove',
    method: 'post',
    data
  })
}

function addUserList(data){
  return instance({
    url: '/user/add',
    method: 'post',
    data
  })
}

function editUserList(data){
  return instance({
    url: '/user/edit',
    method: 'post',
    data
  })
}

export { getUserlistData, updateStatus, delUserList, addUserList, editUserList }